package com.lu;

import com.lu.domain.Sell;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext cls = new ClassPathXmlApplicationContext("applicationContext.xml");
        //ApplicationContext cls = new AnnotationConfigApplicationContext("")
        Sell sell = cls.getBean("sell",Sell.class);
        sell.selling(100,"svip");

    }
}
